package com.tencreat.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum FinanceType {
    /**
     * 商家订单状态枚举
     */
    ORDER(100, "订单"),
    RECHARGE(101, "充值"),
    WITHDRAWAL(102, "提现"),
    REFUND(103, "退款"),
    COMMISSION(104, "佣金"),
    //MEMBERS(105, "会员"),
    MANAGE(106, "管理支出");



    FinanceType(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @EnumValue
    private final int value;
    @JsonValue
    private final String desc;

    /**
     * 单个枚举的展示
     */
    @Override
    public String toString() {
        return value + "-" + desc;
    }
}
